package com.murfrosoft.gameengine;

import android.content.Context;
import android.graphics.Point;
import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnTouchListener;


import com.murfrosoft.views.AnimationViewAbstractBase;

public abstract class SingleTouchGameEngine extends AnimationViewAbstractBase implements OnTouchListener{

	public Point touch = new Point(0,0);
	
	public SingleTouchGameEngine(Context context) {
		super(context);
		super.setOnTouchListener(this);
		// TODO Auto-generated constructor stub
	}

	
	@Override
	public boolean onTouch(View v,MotionEvent event){
		touch.x=(int)event.getX();
		touch.y=(int)event.getY();
		
		return true;
	}
}
